
<section class="industry-module">
    <?php $cpfwy_syxy=dr_site_value('cpfwy_syxy');?>
    <h2>适用行业</h2>
    <div class="industry-grid">
        <?php if ($cpfwy_syxy) { $key=0; foreach ($cpfwy_syxy as $v) { ?>
        <div class="industry-item">
            <img src="{dr_get_file($v[1])}" alt="{$v[2]}">
            <p>{$v[2]}</p>
        </div>
        <?php  $key++; } } ?>
    </div>
    <div class="consult-button">
        <button onclick="openForm()">立即咨询</button>
    </div>
    <style type="text/css">
        .industry-module {
            padding: 50px 20px;
            background-color: #fff;
        }
        
        .industry-module h2 {
            font-size: 32px;
            color: #333;
            margin-bottom: 40px;
            font-weight: bold;
            text-align: center;
        }
        
        /* 行业网格布局 */
        .industry-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
        }
        
        /* 单个行业项目 */
        .industry-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 16%;
            margin: 20px 0;
        }
        
        .industry-item p {
            font-size: 1rem;
            color: #666;
        }
        
        /* 咨询按钮 */
        .consult-button {
            text-align: center;
            margin-top: 40px;
        }
        
        .consult-button button {
            padding: 15px 90px;
            font-size: 1.2rem;
            color: #fff;
            background-color: #007bff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        
        .consult-button button:hover {
            background-color: #0056b3;
        }
        /* 添加Y轴旋转动画 */
        @keyframes rotateImageY {
            0% {
                transform: rotateY(0deg);
            }
            100% {
                transform: rotateY(360deg);
            }
        }
        
        /* 鼠标移入时沿Y轴旋转图片 */
        .industry-item img:hover {
            animation: rotateImageY 0.9s ease-in-out; /* Y轴旋转动画 */
        }
        
        .industry-item img {
            width: 170px;
            height: 170px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 10px;
            transition: transform 0.9s ease; /* 添加过渡效果 */
        }

        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .industry-grid {
                gap: 20px;
            }
        
            .industry-item {
                width: 28%;
                margin: 5px 0;
            }
        
            .industry-item img {
                width: 100%;
                height: auto;
            }
        
            .consult-button button {
                font-size: 1rem;
            }
        }

    </style>
</section>